package file;

import java.io.File;

public class DeleteFileDirDemo {
    public static void main(String[] args) {
        File file = new File("./6/66/666");
        if (file.exists()){
            file.delete();
            System.out.println("该文件或目录已经删除");
        }else {
            System.out.println("该文件或目录不存在");
        }
    }
}
